<template>
  <div>
    <my-header></my-header>
    <div class="top-block"></div>
    <mt-cell
      title="游戏账号"
      to="/account"
      is-link>
    </mt-cell>
    <mt-cell
      title="推广二维码"
      to="/qrcode"
      is-link>
    </mt-cell>
    <mt-cell
      title="我的充值记录"
      to="/record"
      is-link>
    </mt-cell>
    <mt-cell
      v-if='status == 1'
      title="我的分组"
      to="/myGroup"
      is-link>
    </mt-cell>
    <mt-cell
      v-if='status == 1'
      title="登录器地址"
      to="/server"
      is-link>
    </mt-cell>
    <div class="bottom-block"></div>
    <my-footer></my-footer>
  </div>
</template>

<script>
  import {proxy_gid_judge} from '@/api/';
  export default {
    data(){
      return{
        tel:'',
        status:'',//是否为代理商
      }
    },
    methods:{
      getStatus(){
        this.tel = JSON.parse(localStorage.getItem('tel'));
        proxy_gid_judge({tel:this.tel}).then(res =>{
          this.status = res.status;
        })
      }
    },
    mounted() {
      this.getStatus();
    }
  }
</script>

<style scoped>

</style>
